<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const obj = {
            flag: 'Jhon',
            func: function () {
                console.log(this);
                console.log(this.flag);
            }
        };
        const p = new Proxy(obj, {});
        p.func();
        obj.func();
    </script>
</body>

</html>